package com.qfedu.mapper;

import com.qfedu.entity.RoleEntity;
import com.qfedu.pojo.RolePojo;
import org.apache.ibatis.annotations.Param;

import javax.management.relation.Role;
import java.util.List;

public interface RolePojoMapper {
    public List<RolePojo> queryAllRole();
    //查询所有角色
    public  List<RolePojo> queryRoleList(RoleEntity roleEntity);
    //添加角色
    public Boolean insertRole(RoleEntity roleEntity);
    //为角色绑定权限
    public Boolean bindAuthWithRole(RoleEntity roleEntity);
    //根据rid查询权限
    public List<RolePojo> queryauthbyid(RoleEntity roleEntity);
    //更新角色
    public Boolean updateRole(RoleEntity roleEntity);
    //解绑权限
    public Boolean untying(int rid);
    //删除角色
    public Boolean deleteRoleById(@Param("ridstr") String ridstr);
}
